package com.yunyan.controller;


import com.yunyan.resp.JsonResp;
import com.yunyan.service.RecommendService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/recommend")
public class RecommendController {


    @Resource
    private RecommendService recommendService;

    @GetMapping("/{userId}")
    public JsonResp list(@PathVariable String userId){
        return JsonResp.ok(recommendService.listUserRecommend(userId));
    }
}
